(function() {

  define(['jquery', 'bootstrap_popover'], function($) {
    return {
      init: function() {
        var Control;
        Control = $('#MainContent_Login').popover({
          delay: {
            show: 500,
            hide: 100
          },
          content: "E-mail address cannot be empty",
          trigger: 'manual'
        });
        return Control.on('focusout', function() {
          if (!Control.val().length) {
            return Control.popover('show');
          } else {
            return Control.popover('hide');
          }
        });
      }
    };
  });

}).call(this);
